package org.redis.cluster.transport.client;

import org.redis.cluster.config.ClientConfig;

public interface ClientPool {

	/**
	 * 返回客户端
	 * @param config
	 * @return
	 */
	public Client getClient(ClientConfig config);
	
	/**
	 * 返回客户端
	 * @param config
	 * @param client
	 * @return
	 */
	public boolean returnClient(ClientConfig config,Client client);
	
	/**
	 * 销毁
	 * @param config
	 * @return
	 */
	public boolean destroy(ClientConfig config);
}